package com.lv.service.model

import androidx.databinding.ObservableField
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.luck.picture.lib.entity.LocalMedia
import com.lv.common.bean.CommonSelectedBean
import com.lv.service.bean.CardBean
import com.lv.service.bean.CommonTab
import com.lv.service.bean.TVIVItemBean
import com.lv.service.room.category.CategoryBean
import com.lv.service.room.category.SpuCategoryBean

/**
 * 作者： ygx
 * 创建日期：2023/2/28 5:09 PM
 * 签名： 天行健，君子以自强不息；地势坤，君子以厚德载物。
 * -    _              _           _     _   ____  _             _ _
 * -   / \   _ __   __| |_ __ ___ (_) __| | / ___|| |_ _   _  __| (_) ___
 * -  / _ \ | '_ \ / _` | '__/ _ \| |/ _` | \___ \| __| | | |/ _` | |/ _ \
 * - / ___ \| | | | (_| | | | (_) | | (_| |  ___) | |_| |_| | (_| | | (_) |
 * -/_/   \_\_| |_|\__,_|_|  \___/|_|\__,_| |____/ \__|\__,_|\__,_|_|\___/
 * <p>
 * You never know what you can do until you try !
 * ----------------------------------------------------------------
 * 描述：     private val mEditorViewModel by viewModels<EditorViewModel>()
 */
class EditorViewModel : ViewModel() {
    var obCpname = ObservableField<String>()
    var obName = ObservableField<String>()
    var obPhone = ObservableField<String>()
    var obPhoneOther = ObservableField<String>()
    var obAddress = ObservableField<String>()
    var obShowAddress = ObservableField<String>()
    var obDetailAddress = ObservableField<String>()
    var selectName = MutableLiveData<String>()
    var selectMedia = MutableLiveData<MutableList<LocalMedia?>>()
    var payMedia = MutableLiveData<MutableList<LocalMedia?>>()
    var certificatesMedia = MutableLiveData<MutableList<LocalMedia?>>()
    var moreTypeMedia = MutableLiveData<MutableList<TVIVItemBean>>()
    var allCards = MutableLiveData<CardBean>()
    var myCards = MutableLiveData<CardBean>()
    var categorySelected = MutableLiveData<Boolean>()
    var addressShow = MutableLiveData<Boolean>()
    var enableEditor = MutableLiveData<Boolean>()
    var paramsSeting = MutableLiveData<Boolean>()
    var categoryCard = MutableLiveData<Boolean>()
    var obPeriods = MutableLiveData<Boolean>()
    var obTab = MutableLiveData<Int>()
    var obCommon = MutableLiveData<CommonTab>()

    var obMobile = ObservableField<String>()
    var obPassword = ObservableField<String>()
    var obPasswordCon = ObservableField<String>()
    var obIsAgree = ObservableField<Boolean>()

    val liveCommonData = MutableLiveData<List<CommonSelectedBean>>()
    val liveSearchData = MutableLiveData<List<String>>()
    val liveCategoryData = MutableLiveData<List<CategoryBean>>()
    val liveSpuCategoryData = MutableLiveData<List<SpuCategoryBean>>()

}